package com.fnfn.sdk.api.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.fnfn.sdk.api.entity.User;

@Repository
public interface UserMapper {

    int deleteByPrimaryKey(Integer cUserId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer cUserId);

    User selectDetailByUserId(Integer cUserId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByUsername(String cUsername);

    void removeByUserId(Integer cUserId);

    void updateExcept(User user);

    List<User> selectByCondition(User user);

    List<User> selectByDepartmentId(Integer cDepartmentId);

    List<User> selectByRoleId(Integer cRoleId);

    User selectDetailByUsername(String cUsername);

    List<User> selectAll(User user);

    int modifyStatus(User user);
}
